import Layout from '@/layout'

export const menuMap = {
  // 系统管理
  '/system': Layout,
  '/system/role': () => import('@/views/system/role'),
  '/system/user': () => import('@/views/system/user'),
  '/system/menu': () => import('@/views/system/menu'),
  '/system/task': () => import('@/views/system/task'),
  '/system/info': () => import('@/views/system/info'),
  '/dashboard': () => import('@/views/dashboard/index'),
  // 主页管理
  '/main': Layout,
  '/main/nav': () => import('@/views/main/nav'),
  '/main/friend_link': () => import('@/views/main/friend_link'),
  '/main/tag': () => import('@/views/main/tag'),
  '/main/technology': () => import('@/views/main/technology'),
  // 博客管理
  '/blog': Layout,
  '/blog/examine': () => import('@/views/blog/examine'),
  '/blog/notice': () => import('@/views/blog/notice'),
  '/blog/manage': () => import('@/views/blog/manage'),
  '/blog/argument': () => import('@/views/blog/argument'),
  // 其他管理
  '/other': Layout,
  '/other/question': () => import('@/views/other/question'),
  '/other/feedback': () => import('@/views/other/feedback'),
  '/other/report': () => import('@/views/other/report'),
  '/log': Layout,
  '/log/operalog': () => import('@/views/system/log'),
  // 积分交易
  '/point': Layout,
  '/point/trade-type': () => import('@/views/point/tradetype'),
  '/point/order': () => import('@/views/point/order'),
  // 工作流部分
  // 工作流程
  '/workflow': Layout,
  '/workflow/model': () => import('@/views/workflow/model'), // 模型管理
  '/workflow/process': () => import('@/views/workflow/process'), // 流程定义管理
  // 业务办理
  '/workflow/apply/leave': () => import('@/views/workflow/apply/leave'), // 请假流程
  '/workflow/apply/loan': () => import('@/views/workflow/apply/loan'), // 借款流程
  // 个人任务
  '/workflow/await': () => import('@/views/workflow/await'), // 待办任务
  '/workflow/complete': () => import('@/views/workflow/complete'), // 已办任务
  // 流程实例
  '/workflow/running': () => import('@/views/workflow/running'), // 运行中流程
  '/workflow/finish': () => import('@/views/workflow/finish') // 已结束流程
}
